@include("layout.header")
<div class="layui-body">
    <div class="user-login-header">
        <h2>
            增加操作页
        </h2>
    </div>
    <form class="layui-form" action="/index.php/admin/storepermission">
        <div class="layui-form-item">
            <label class="layui-form-label">操作名称</label>
            <div class="layui-input-inline">
                <input type="text" name="name" required  lay-verify="required" placeholder="请输入标题" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">命名空间</label>
            <div class="layui-input-inline">
                <input type="text" name="namespace" required lay-verify="required" placeholder="请输入密码" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">控制器</label>
            <div class="layui-input-inline">
                <input type="text" name="controller" required lay-verify="required" placeholder="请输入邮箱" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">方法</label>
            <div class="layui-input-inline">
                <input type="text" name="action" required lay-verify="required" placeholder="请输入备注" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">父节点</label>
            <div class="layui-input-inline">
                <select class="form-control select2" style="width: 100%;" name="parent_id">
                    <option selected="selected" value="0">/</option>
                    @foreach($parents as $parent)
                        <option value="{{$parent->id}}">{{$parent->name}}</option>
                    @endforeach
                </select>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">添加备注</label>
            <div class="layui-input-inline">
                <input type="text" name="description" required lay-verify="required" placeholder="请输入备注" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <div class="layui-input-block">
                <button class="layui-btn" lay-submit lay-filter="formDemo">立即提交</button>
                <button type="reset" class="layui-btn layui-btn-primary">重置</button>
            </div>
        </div>
    </form>
</div>

@include("layout.footer")
